AliasAs()
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
Equals(Object)
Inherited from System.Object
Finalize()
Inherited from System.Object
GetEntropy(IEnumerable<T>)
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
GetHashCode()
Inherited from System.Object
GetType()
Inherited from System.Object
MemberwiseClone()
Inherited from System.Object
Gets the probability of a value in T.
Samples a value from the distribution using a random number between one and zero.
ToString()
Inherited from System.Object
A uniform distribution over a minimum value and maximum value.
All values inside of the range will have probability 1/(max-min).
All values outside of the range will have probability 0.
T must be a Vector value.
public RangedUniform(T min, T max)
Creates a uniform distribution over the specified range.
Parameters:
min
- The lower bound of the range.
max
- The upper bound of the range.
public override Double ProbabilityOf(T x)
Gets the probability of a value in T.
All values inside of the range will have probability 1/(max-min).
All values outside of the range will have probability 0.
Parameters:
x
- The value whose probability is return.
Returns:
The probability of result.
public override T Sample(Random select)
Samples a value from the distribution using a random number between one and zero.
Parameters:
select
- A generator for random values between zero and one.
Returns:
The value of T that maps to the input argument.